import React from 'react';
import ReactDOM from 'react-dom';
// import { createStore } from 'redux';
import Counter from './components/Counter';
// import counter from './reducers';
import store from './storeApp';

// const store = createStore(counter)
const rootEl = document.getElementById('root')
console.log(store.getState());
// const render = () => ReactDOM.render(
//   <Counter
//     value={store.getState()}
//     onIncrement={() => store.dispatch({ type: 'INCREMENT' })}
//     onDecrement={() => store.dispatch({ type: 'DECREMENT' })}
//   />,
//   rootEl
// )

const render = () => {
    ReactDOM.render(
      <Counter
      />,
      rootEl
    )

}

render()
//store.subscribe(render)
